package hypeerweb;

public class DownPointer extends NodeDelegate {
	private static final long serialVersionUID = 1L;

	public DownPointer(Node node) {
		delegate = node;
	}
	
	public void add(Node node) {
		delegate.addUpPointer(new UpPointer(node));
	}
	
	public void remove(Node node) {
		delegate.removeUpPointer(new UpPointer(node));
		delegate.removeSmallerNeighborsChild();
	}
	
	public void replace(Node node, Node replacingNode) {
		delegate.replaceUpPointer(new UpPointer(node), new UpPointer(replacingNode));
	}
}
